package com.huixin.zhang.persistence.entity;

import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Builder;

import java.io.Serializable;

/**
 * @author: 张灿刚
 * @date: 2021-03-04 17:15:28
 * @description: 系统用户-管理员信息(BaseUser)实体类
 */
@Data
@Builder
@ApiModel("系统用户-管理员信息实体类")
public class BaseUser implements Serializable {
    private static final long serialVersionUID = -86647052058561111L;

    @ApiModelProperty("用户ID")
    private Long userId;

    @ApiModelProperty("登陆账号")
    private String userName;

    @ApiModelProperty("昵称")
    private String nickName;

    @ApiModelProperty("头像")
    private String avatar;

    @ApiModelProperty("邮箱")
    private String email;

    @ApiModelProperty("手机号")
    private String mobile;

    @ApiModelProperty("用户类型:super-超级管理员 admin-管理员 normal-普通管理员")
    private String userType;

    @ApiModelProperty("单位ID")
    private Long companyId;

    @ApiModelProperty("描述")
    private String userDesc;

    @ApiModelProperty("状态:0-禁用 1-正常 2-锁定")
    private Object status;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("更新时间")
    private Date updateTime;

    @ApiModelProperty("创建者ID")
    private Long createrId;

    @ApiModelProperty("更新者ID")
    private Long updaterId;

}

